package com.tbq.game.service.app.mvp

import java.lang.ref.WeakReference

abstract class BasePresenter<V : IBaseView> {
    private var view: V? = null
    fun attach(mView: V) {
        view = WeakReference<V>(mView).get()
    }

    fun dettach() {
        view = null
    }

    fun getBaseView(): V? {
        return view
    }

}